<template>
  <div>
    <div class="item border-bottom" v-for="(item, index) in list" :key="index">
      <div class="item-title">{{item.title}}</div>
      <div class="item-children" v-if="item.children">
        <detail-list :list="item.children"></detail-list>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'DetailList',
  props: {
    list: Array
  }
}
</script>

<style lang="stylus" scoped="">
  .item-title
    height: 0.6rem
    lin-height: 0.6rem
    padding: 0.2rem
  .item-children
    padding: 0 0.3rem
</style>
